<template>
  <div
    class="card"
    :style="{
      height,
    }"
  >
    <div class="card_header">
      <div class="card_header_item active">
        {{ title }}
      </div>
    </div>
    <div class="card_body">
      <slot> </slot>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: "",
    };
  },
  props: {
    title: {
      type: String,
      default: "",
    },

    height: {
      type: String,
      default: "380px",
    },
  },
  methods: {},
  mounted() {},
};
</script>

<style lang="scss" scoped>
.card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);

  &_header {
    height: 40px;
    background: #e9f5fd;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    &_item {
      height: 40px;
      line-height: 40px;
      padding: 0 15px;
      font-size: 16px;
      font-weight: 400;
      color: #222222;
    }
    .active {
      background: #bfdffc;
    }
  }

  &_body {
    height: calc(100% - 40px);
    box-sizing: border-box;
    padding: 10px;
    background-color: #fff;
    overflow: auto;
  }
}
</style>
